<?php
session_start();
/*
***********************************
CopyRight 2011 -Scout4all
***********************************
*/
  //back to project again
require('connection.php');
$query="select * from users_site_index order by id";
$result=mysql_query($query);

while($data=mysql_fetch_assoc($result)){
echo"<table border='1px' color='black' dir='rtl' width='40%' >";
echo"<tr>";
echo"<td width='10px'> $data['id']</td>";
echo"<td width='100px'> $data['name']</td>";
echo"<td width='50px'> $data[username]</td>";
echo"<td width='50px'> $data[jop]</td>";
echo"<td width='10px'> <a href='test.php?id=$data[id]'>X</a></td>";
echo"</tr>";
echo"</table>";
}
$id=$_GET['id'];
$query_users="delete from users_site_index where id='$id'";
$del=mysql_query($query_users);
mysql_close($con)
?>